import request from '@/utils/request'

// 查询充电桩与策略关系列表
export function listPPRelation(query) {
  return request({
    url: '/manage/PPRelation/list',
    method: 'get',
    params: query
  })
}

// 查询充电桩与策略关系详细
export function getPPRelation(pileId) {
  return request({
    url: '/manage/PPRelation/' + pileId,
    method: 'get'
  })
}

// 新增充电桩与策略关系
export function addPPRelation(data) {
  return request({
    url: '/manage/PPRelation',
    method: 'post',
    data: data
  })
}

// 修改充电桩与策略关系
export function updatePPRelation(data) {
  return request({
    url: '/manage/PPRelation',
    method: 'put',
    data: data
  })
}

// 删除充电桩与策略关系
export function delPPRelation(pileId) {
  return request({
    url: '/manage/PPRelation/' + pileId,
    method: 'delete'
  })
}
